<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$title}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- 引用文件 -->
<link rel="stylesheet" href="Res/index/css/index.css" type="text/css" media="screen" />
<!--<script type="text/javascript" src="Res/index/js/jquery.min.js"></script>-->
<script type="text/javascript" src="Res/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="Res/index/js/tendina.min.js"></script>
<script type="text/javascript" src="Res/index/js/common.js"></script>
</head>
<body>
<!--顶部-->
<div class="top">
        <div style="float: left"><span style="font-size: 16px;line-height: 45px;padding-left: 20px;color: #fff">管理中心</h1></span></div>        
        <div id="ad_setting" class="ad_setting">
            <a class="ad_setting_a" href="javascript:">{$smarty.session.user_name}</a>
            <ul class="dropdown-menu-uu" style="display: none" id="ad_setting_ul">
                <!--<li class="ad_setting_ul_li"> <a href="javascript:;"><i class="icon-user glyph-icon"></i>个人中心</a> </li>-->
                <li class="ad_setting_ul_li"> <a target="menuFrame" href="index.php?c=user&m=set"><i class="icon-cog glyph-icon"></i>设置</a> </li>
                <li class="ad_setting_ul_li"> <a href="javascript:#" onclick="loginout();"><i class="icon-signout glyph-icon"></i> <span class="font-bold">退出</span> </a> </li>
            </ul>
            <img class="use_xl" src="Res/index/images/right_menu.png" />
        </div>
        <div id="ad_setting" class="ad_setting">
            <a class="ad_setting_a" target="menuFrame" href="index.php?c=user&m=clear">清除缓存</a>            
        </div>
        <div id="ad_setting" class="ad_setting">
            <a class="ad_setting_a" href="javascript:window.top.frames['menuFrame'].document.location.reload(); ">刷新</a>            
        </div>
        <div id="ad_setting" class="ad_setting">
            <a class="ad_setting_a" id="showhide" href="#">隐藏</a>            
        </div>
        <div id="ad_setting" class="ad_setting">
            <a class="ad_setting_a" href="javascript:#" onclick="loginout();">退出</a>            
        </div>
</div>
 <!--顶部结束-->
 <!--菜单-->
<div class="left-menu">
    <ul id="menu">
        {foreach from=$menu_data item=menu}
        <li class="menu-list">
            <a style="cursor:pointer" class="firsta"><i  class="glyph-icon xlcd"></i>{$menu.action_chinese}<s class="sz"></s></a>
            <ul>
                {foreach from=$menu.child item=child}
                <li><a href="index.php?{$child.action_url}" target="menuFrame"><i class="glyph-icon"></i>{$child.action_chinese}</a></li>
                {/foreach}
            </ul>
        </li>
        {/foreach}
    </ul>
</div>

<!--菜单右边的iframe页面-->
<div id="right-content" class="right-content">
    <div class="content">
        <div id="page_content">
            <iframe id="menuFrame" name="menuFrame" src="index.php?c=index&m=info" style="overflow:auto ;"
                    scrolling="yes" frameborder="no" width="100%" height="100%">                        
            </iframe>
        </div>
    </div>
</div>
{literal}
<script>
    function loginout(){
        window.location.href = 'index.php?c=manager&m=quit';
    }
    $(function(){
        $("#showhide").click(function(){
            var _this = $(this);
            var _left = $(".left-menu");
            var _right = $(".right-content");
            var rightw = _right.width();
            var leftw = _left.width();
            console.log(rightw +";" + leftw);
            if(_left.is(":visible")) {
                _left.animate({opacity:"hide"});             
                _this.html("显示");
            } else {
                _left.animate({opacity:"show"});
                _this.html("隐藏");
            }
        });
    });
</script>
{/literal}
{include file="lib/footer.html"}